package io.github.yotta.dict.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import java.time.LocalDateTime;

/**
* @author yotta-generator
* @date 2025-08-11 10:12:20
*系统字典表 - 实体类
*/
@Data
@TableName("tb_sys_dict")
public class SysDict implements Serializable {

    /**
    * id
    */
    @TableId(type = IdType.AUTO)
    private String id;

    /**
    * 租户id
    */
    private String tenantId;

    /**
    * 字典的编码，全局唯一
    */
    private String code;

    /**
    * 字典的分类,提供该分类可以查出一类字典配置
    */
    private String category;

    /**
    * 排序
    */
    private Integer sort;

    /**
    * 状态，0：正常；1：隐藏
    */
    private Integer status;

    /**
    * 字典的值
    */
    private String value;

    /**
    * 字典的扩展字段
    */
    private String extra;

    /**
    * 字典的显示名称
    */
    private String displayName;

    /**
    * 字典的描述
    */
    private String description;

    /**
    * 创建时间
    */
    private LocalDateTime createdAt;

    /**
    * 更新时间
    */
    private LocalDateTime updatedAt;

    /**
    * 创建人
    */
    private String createdBy;

    /**
    * 更新人
    */
    private String updatedBy;


    public interface Columns {

         String ID = "id";

         String TENANT_ID = "tenant_id";

         String CODE = "code";

         String CATEGORY = "category";

         String SORT = "sort";

         String STATUS = "status";

         String VALUE = "value";

         String EXTRA = "extra";

         String DISPLAY_NAME = "display_name";

         String DESCRIPTION = "description";

         String CREATED_AT = "created_at";

         String UPDATED_AT = "updated_at";

         String CREATED_BY = "created_by";

         String UPDATED_BY = "updated_by";

    }
}
